package com.ml.mall.service.remark;

import com.ml.mall.bean.req.remark.RemarkNewDto;
import com.ml.mall.bean.req.remark.RemarkQueryAllDto;
import com.ml.mall.entity.remark.SysRemark;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *
 */
public interface SysRemarkService extends IService<SysRemark> {

    /**
     * 添加备注
     * @param dto
     * @return
     */
    boolean save(RemarkNewDto dto);

    /**
     * 查询备注
     * @param dto
     * @return
     */
    List<SysRemark> queryAll(RemarkQueryAllDto dto);

    /**
     * 添加公司拒绝记录
     * @param companyId
     * @param refuseReason
     * @return
     */
    boolean addCompanyRefuseRecord(Long companyId, String refuseReason);
}
